/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 标杆督导Entity
 * @author jyangye
 * @version 2018-01-10
 */
public class ViEmpBgDudao extends DataEntity<ViEmpBgDudao> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工编号

	private String name;		// 姓名
	private Double wanchengl;		// 当月完成率
	private Double jixiao;		// 当月绩效
	private Date makeDate;		// 成为标杆时间
	private String code;		// 身份证号
	private int year;		// 所在年份
	private int month;		// 所在月份
	private String isActive;		// 是否生效

    private Office comp;
    private Office dept;
    private Office post;

    private String errMsg;
	
	public ViEmpBgDudao() {
		super();
	}

	public ViEmpBgDudao(String id){
		super(id);
	}

	@Length(min=0, max=32, message="员工编号长度必须介于 0 和 32 之间")
	@ExcelField(title="员工编号", align=2, sort=20)
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }
    @ExcelField(title="部门", align=2, sort=40)
    public Office getDept() {
        return dept;
    }

    public void setDept(Office dept) {
        this.dept = dept;
    }
    @ExcelField(title="岗位", align=2, sort=50)
    public Office getPost() {
        return post;
    }

    public void setPost(Office post) {
        this.post = post;
    }
	
	@Length(min=1, max=64, message="姓名长度必须介于 1 和 64 之间")
	@ExcelField(title="姓名", align=2, sort=60)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="*当月完成率", align=2, sort=70)
	public Double getWanchengl() {
		return wanchengl;
	}

	public void setWanchengl(Double wanchengl) {
		this.wanchengl = wanchengl;
	}
	
	@ExcelField(title="*当月绩效", align=2, sort=80)
	public Double getJixiao() {
		return jixiao;
	}

	public void setJixiao(Double jixiao) {
		this.jixiao = jixiao;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@NotNull(message="成为标杆时间不能为空")
	@ExcelField(title="*成为标杆时间", align=2, sort=90)
	public Date getMakeDate() {
		return makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}
	
	@Length(min=1, max=64, message="身份证号长度必须介于 1 和 64 之间")
	@ExcelField(title="*身份证号", align=2, sort=65, isText = true)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=11, message="所在年份长度必须介于 0 和 11 之间")
	@ExcelField(title="*所在年份", align=2, sort=110)
	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
	
	@Length(min=0, max=11, message="所在月份长度必须介于 0 和 11 之间")
	@ExcelField(title="*所在月份", align=2, sort=120)
	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

    @ExcelField(title="错误信息", align=2, sort=130, type = 1)
    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}